package com.cetc39.action;

import com.cetc39.bean.Device;
import com.cetc39.service.DeviceService;
import com.opensymphony.xwork2.ActionSupport;

public class DeviceAction extends ActionSupport {
	
	private Device device;
	
	private DeviceService deviceService;
	
	public String addDevice() {
		deviceService.addDev(device);
		return null;
	}
	
	public void setDeviceService(DeviceService deviceService) {
		this.deviceService = deviceService;
	}

	public Device getDevice() {
		return device;
	}

	public void setDevice(Device device) {
		this.device = device;
	}
	
}
